#include "xdisk_gui.h"
#ifdef _WIN32
#include <Windows.h>
#else
#include <signal.h>
#endif
#include <QtWidgets/QApplication>

int main(int argc, char *argv[])
{
#ifdef _WIN32
	WSADATA wsa;
	WSAStartup(MAKEWORD(2, 2), &wsa);
#else
	if (signal(SIGPIPE, SIG_IGN) == SIG_ERR)
		return 1;
#endif
	QApplication a(argc, argv);
	XDiskGUI w;
	w.show();
	return a.exec();
}
